import { createSSRApp } from 'vue'
import App from './App.vue'
import BaiduMap from 'vue-baidu-map-3x'
import Vant from 'vant'
import 'vant/lib/index.css'
// 导入 pinia 实例
import pinia from './stores'

export function createApp() {
  // 创建 vue 实例
  const app = createSSRApp(App)

  // 使用 pinia
  app.use(pinia)
  app.use(Vant)

  app.use(BaiduMap, {
    ak: 'Yk0EP1SLDPFNAYdIstrGGaWz0n4g8Ydc',
  })
  return {
    app,
  }
}
